import { RouteView } from '../layouts'

export default [{
  path: '/task',
  component: () => import('../views/task/TaskList.vue'),
  meta: { title: '调度中心', keepAlive: true },
  children: [{
    path: '/task/edit',
    component: () => import('../views/task/TaskEdit.vue'),
    meta: { title: '修改', code: 'edit' }
  }, {
    meta: { title: '新增', code: 'add' }
  }, {
    meta: { title: '删除', code: 'delete' }
  }, {
    path: '/task/view',
    component: () => import('../views/task/TaskView.vue'),
    meta: { title: '定时任务', code: 'view' },
    children: [{
      path: '/task/detail',
      component: () => import('../views/task/TaskDetail.vue'),
      meta: { title: '任务详情', code: 'detail' }
    }, {
      path: '/task/vedit',
      component: () => import('../views/task/taskViewEdit.vue'),
      meta: { title: '任务详情', code: 'vedit' }
    }]
  }]
}]